import {Route,Routes,BrowserRouter,useNavigate} from 'react-router-dom'
import './App.css';
import routes from './router';
function App() {
 
  return (
    <BrowserRouter>
      <div>
      <Routes>
            {routes.map((item, i) => (
              <Route path={item.path} element={<div>{item.element}</div>} key={i}
              ></Route>
            ))}
          </Routes>
      </div>
  
 
   </BrowserRouter>
  )
}

export default App;
